import request from '@/utils/request'

export function purchaseRelation_index(params) {
  return request({
    url: '/purchaseRelation/index',
    method: 'get',
    params
  })
}

export function purchaseRelation_base(params) {
  return request({
    url: '/purchaseRelation/base',
    method: 'get',
    params
  })
}

export function purchaseRelation_getGoods(params) {
  return request({
    url: '/purchaseRelation/getGoods',
    method: 'get',
    params
  })
}

export function purchaseRelation_bindBuyer(data) {
  return request({
    url: '/purchaseRelation/bindBuyer',
    method: 'post',
    data:data
  })
}

export function purchaseRelation_bindSupplier(data) {
  return request({
    url: '/purchaseRelation/bindSupplier',
    method: 'post',
    data:data
  })
}

export function purchaseRelation_forceBind(data) {
  return request({
    url: '/purchaseRelation/forceBind',
    method: 'post',
    data:data
  })
}

export function purchaseRelation_delete(data) {
  return request({
    url: '/purchaseRelation/delete',
    method: 'post',
    data:data
  })
}

export function purchaseRelation_editBind(data) {
  return request({
    url: '/purchaseRelation/editBind',
    method: 'post',
    data:data
  })
}

export function purchaseRelation_addBind(data) {
  return request({
    url: '/purchaseRelation/addBind',
    method: 'post',
    data:data
  })
}